package com.huaxia.day9.construct;

public class Son extends Father {

    private String teacherName;

    public static String habbit;


    public Son(String name, String teacherName) {
        super(name);
        this.teacherName = teacherName;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public  String getHabbit() {
        return habbit;
    }

    public  void setHabbit(String habbit) {
        Son.habbit = habbit;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    @Override
    public String toString() {
        return "Son{" +
                "teacherName='" + teacherName + '\'' +
                '}';
    }
}
